package com.itheima.service.store;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.store.Question;

import java.io.ByteArrayOutputStream;
import java.util.List;

/**
 * 题库管理  -> 题目管理(业务层)
 */
public interface QuestionService {

    PageInfo<Question> queryPage(Integer pageNum, Integer pageSize)throws Exception;

    List<Question> findAll()throws Exception;

    Question findById(String id)throws Exception;

    void save(Question question)throws Exception;

    void deleteById(String... ids)throws Exception;

    void update(Question question)throws Exception;

    /**生成报表数据*/
    ByteArrayOutputStream report()throws Exception;

    List<Question> textPaper()throws Exception;
}
